Optimal. Leaf size=73 \[ -\frac {\cos (e+f x)}{3 (a+b) f \left (a+b-b \cos ^2(e+f x)\right )^{3/2}}-\frac {2 \cos (e+f x)}{3 (a+b)^2 f \sqrt {a+b-b \cos ^2(e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3265, 198, 197}
\begin {gather*} -\frac {2 \cos (e+f x)}{3 f (a+b)^2 \sqrt {a-b \cos ^2(e+f x)+b}}-\frac {\cos (e+f x)}{3 f (a+b) \left (a-b \cos ^2(e+f x)+b\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 197
Rule 198
Rule 3265
Rubi steps
\begin {align*} \int \frac {\sin (e+f x)}{\left (a+b \sin ^2(e+f x)\right )^{5/2}} \, dx &=-\frac {\text {Subst}\left (\int \frac {1}{\left (a+b-b x^2\right )^{5/2}} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac {\cos (e+f x)}{3 (a+b) f \left (a+b-b \cos ^2(e+f x)\right )^{3/2}}-\frac {2 \text {Subst}\left (\int \frac {1}{\left (a+b-b x^2\right )^{3/2}} \, dx,x,\cos (e+f x)\right )}{3 (a+b) f}\\ &=-\frac {\cos (e+f x)}{3 (a+b) f \left (a+b-b \cos ^2(e+f x)\right )^{3/2}}-\frac {2 \cos (e+f x)}{3 (a+b)^2 f \sqrt {a+b-b \cos ^2(e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 60, normalized size = 0.82 \begin {gather*} \frac {2 \sqrt {2} \cos (e+f x) (-3 a-2 b+b \cos (2 (e+f x)))}{3 (a+b)^2 f (2 a+b-b \cos (2 (e+f x)))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 6.44, size = 55, normalized size = 0.75
method | result | size |
default | \(-\frac {\left (2 b \left (\sin ^{2}\left (f x +e \right )\right )+3 a +b \right ) \cos \left (f x +e \right )}{3 \left (a +b \left (\sin ^{2}\left (f x +e \right )\right )\right )^{\frac {3}{2}} \left (a^{2}+2 a b +b^{2}\right ) f}\) | \(55\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 67, normalized size = 0.92 \begin {gather*} -\frac {\frac {2 \, \cos \left (f x + e\right )}{\sqrt {-b \cos \left (f x + e\right )^{2} + a + b} {\left (a + b\right )}^{2}} + \frac {\cos \left (f x + e\right )}{{\left (-b \cos \left (f x + e\right )^{2} + a + b\right )}^{\frac {3}{2}} {\left (a + b\right )}}}{3 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 134 vs.
\(2 (65) = 130\).
time = 0.49, size = 134, normalized size = 1.84 \begin {gather*} \frac {{\left (2 \, b \cos \left (f x + e\right )^{3} - 3 \, {\left (a + b\right )} \cos \left (f x + e\right )\right )} \sqrt {-b \cos \left (f x + e\right )^{2} + a + b}}{3 \, {\left ({\left (a^{2} b^{2} + 2 \, a b^{3} + b^{4}\right )} f \cos \left (f x + e\right )^{4} - 2 \, {\left (a^{3} b + 3 \, a^{2} b^{2} + 3 \, a b^{3} + b^{4}\right )} f \cos \left (f x + e\right )^{2} + {\left (a^{4} + 4 \, a^{3} b + 6 \, a^{2} b^{2} + 4 \, a b^{3} + b^{4}\right )} f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.62, size = 137, normalized size = 1.88 \begin {gather*} \frac {{\left (\frac {2 \, b^{2} f^{2} \cos \left (f x + e\right )^{2}}{a^{2} b f^{2} + 2 \, a b^{2} f^{2} + b^{3} f^{2}} - \frac {3 \, {\left (a b f^{2} + b^{2} f^{2}\right )}}{a^{2} b f^{2} + 2 \, a b^{2} f^{2} + b^{3} f^{2}}\right )} \sqrt {-b \cos \left (f x + e\right )^{2} + a + b} \cos \left (f x + e\right )}{3 \, {\left (b \cos \left (f x + e\right )^{2} - a - b\right )}^{2} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 20.80, size = 159, normalized size = 2.18 \begin {gather*} \frac {4\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )\,\sqrt {a+b\,{\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}^2}\,\left (b-6\,a\,{\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-4\,b\,{\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+b\,{\mathrm {e}}^{e\,4{}\mathrm {i}+f\,x\,4{}\mathrm {i}}\right )}{3\,f\,{\left (a+b\right )}^2\,{\left (b-4\,a\,{\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-2\,b\,{\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+b\,{\mathrm {e}}^{e\,4{}\mathrm {i}+f\,x\,4{}\mathrm {i}}\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________